package com.personal.o2o.dao;

import com.personal.o2o.entity.ProductCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface ProductCategoryDao {
	/**
	 * 通过shopId查询店铺商品类别
	 * @param shopId
	 * @return
	 */
	List<ProductCategory> queryProductdCategoryList(long shopId);

	/**
	 * 批量新增商品类别
	 * @param productCategoryList
	 * @return
	 * @throws RuntimeException
	 */
	int batchInsertProductCategory(List<ProductCategory> productCategoryList);

	/**
	 * 删除指定商品类别
	 *
	 * @param productCategoryId
	 * @param shopId
	 * @return effectedNum
	 */
	int deleteProductCategory(
			@Param("productCategoryId") long productCategoryId,
			@Param("shopId") long shopId);
}
